<div class="promotions">
	<img class="f_r" src="img/top.png"/></div><div id="logo">
	<span class="g1">Inter</span><span class="r1">Logic</span>
</div><nav>
	[% IF menu %]
		<ul>
		[% PERL %]
			my @menu = @{$stash->get('menu')};
			my $cont = $stash->get('action');
			my $item;
			while (defined($item = shift @menu)) {
				if ($cont eq $item->getCode()) {
					print '<li><a class="active" href="#">' . $item->getName() . '</a></li>';
				} else {
					print '<li><a href="' . $item->getCode() . '">' . $item->getName() . '</a></li>';
				}			}
		[% END %]
		</ul>
	[% ELSE %]
		can`t load main menu		
	[% END %]</nav>